import request from '@/utils/request'

// 查询用户地址信息列表
export function listCompassUserAddress(query) {
    return request({
        url: '/system/CompassUserAddress/list',
        method: 'get',
        params: query
    })
}

// 查询用户地址信息详细
export function getCompassUserAddress(id) {
    return request({
        url: '/system/CompassUserAddress/' + id,
        method: 'get'
    })
}

// 新增用户地址信息
export function addCompassUserAddress(data) {
    return request({
        url: '/system/CompassUserAddress',
        method: 'post',
        data: data
    })
}

// 修改用户地址信息
export function updateCompassUserAddress(data) {
    return request({
        url: '/system/CompassUserAddress',
        method: 'put',
        data: data
    })
}

// 删除用户地址信息
export function delCompassUserAddress(id) {
    return request({
        url: '/system/CompassUserAddress/' + id,
        method: 'delete'
    })
}

// 导出用户地址信息
export function exportCompassUserAddress(query) {
    return request({
        url: '/system/CompassUserAddress/export',
        method: 'get',
        params: query
    })
}